package com.od.service.serviceImpl;

import com.od.entity.Work;
import com.od.mapper.WorkMapper;
import com.od.service.WorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkServiceImpl implements WorkService {

    @Autowired
    private WorkMapper workMapper;
    @Override
    public List<Work> getWorkById(int workResume) {
        return workMapper.selectWorkById(workResume);
    }

    @Override
    public int addWork(Work work) {
        return workMapper.insertWork(work);
    }

    @Override
    public int updateWorkById(Work work) {
        return workMapper.updateWorkById(work);
    }

    @Override
    public int deleteWorkById(int workId) {
        return workMapper.deleteWorkById(workId);
    }
}
